<template>
  <div class="col card p10">
    <label class="title">电子秤数据</label>
    <div class="row_center mt">
      <label>front电子秤:</label>
      <label style="width: 70px;">{{ weightState.front }}g</label>
      <Point class="ml" name="检测状态" :value="weightState.sensor.front_check"/>
    </div>
    <div class="row_center mt">
      <label>back 电子秤:</label>
      <label style="width: 70px;">{{ weightState.back }}g</label>
      <Point class="ml" name="检测状态" :value="weightState.sensor.back_check"/>
    </div>
    <div class="row_center mt">
      <Point name="font正常" :value="weightState.sensor.front_fault"/>
      <Point class="ml" name="back正常" :value="weightState.sensor.back_fault"/>
    </div>
  </div>
</template>

<script setup lang="ts">
import { weightState } from '../../service/weight_def';
import Point from '../Point.vue';


</script>
